<template>
  <div class="tobackbox">
    <div class="neibox">
      <div class="left">
        <span class="iconbox"></span>
        <span class="title"> {{ title }}</span>
      </div>
      <div class="right">
        <el-button icon="el-icon-refresh" @click="flshPage">刷新</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['title'],
  data() {
    return {}
  },
  methods: {
    flshPage() {
      this.$emit('update-page')
    }
  }
}
</script>

<style lang="less" scoped>
.tobackbox {
  background: rgba(243, 243, 243, 1);
  border-bottom: 1px solid #e4e4e4;
  .neibox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 56px;
    .left {
      .iconbox {
        display: inline-block;
        width: 5px;
        height: 18px;
        background: #039aff;
        vertical-align: bottom;
      }
      .title {
      }
    }
    .right {
      .el-button {
        font-size: 12px;
        padding: 6px 8px;
      }
    }
  }
}
</style>
